package com.epfresh.api.utils.gson;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

/**
 * @author wangzhanghuan
 * @version 1.0
 * @date create 17-7-6
 * @Description
 */

public class AParameterType implements ParameterizedType {
    private Class raw;
    private Type[] args;

    public AParameterType(Class raw, Type[] args) {
        this.raw = raw;
        this.args = args;
    }

    @Override
    public Type[] getActualTypeArguments() {
        return args;
    }
    @Override
    public Type getRawType() {
        return raw;
    }
    @Override
    public Type getOwnerType() {return null;}
}
